package com.cskaoyan.controller.wx;

import com.cskaoyan.bean.bo.WxFeedbackBo;
import com.cskaoyan.bean.vo.BaseRespVo;
import com.cskaoyan.service.WxFeedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:反馈
 * @Author: chaohe@com.cskaoyan
 * @Date: 2021/7/12
 * @Time: 10:30
 */
@RestController
@RequestMapping("wx/feedback")
public class WxFeedbackController {

    @Autowired
    WxFeedbackService wxFeedbackService;
    /**
     * @Author chaohe
     * @description: 微信小程序的反馈的提交
     * @Date 17:43 2021/7/12
     * url:http://localhost:8083/wx/feedback/submit
     */

    @RequestMapping("/submit")
    public BaseRespVo submit(@RequestBody WxFeedbackBo wxFeedbackBo) {
        wxFeedbackService.submit(wxFeedbackBo);
        return BaseRespVo.ok();
    }

}
